<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div></div>
</body>

<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script>
  axios({
    url: 'http://hmajax.itheima.net/api/province'
  }).then(result => {
    console.log(result)
    console.log(result.data.list)
    // 对数组里面的每一个元素进行拼接 并且每一个元素都进行换行
    console.log(result.data.list.join('<br>'))
    let div = document.querySelector('div')
    div.innerHTML = result.data.list.join('<br>')
  })
</script>

</html>